import service from "@/utils/request";

//127.0.0.1:9999/system/sysUser/login  登录请求
export function loginService(userAccount, password) {
  return service({
    url: "/sysUser/login",
    method: "post",
    data: { userAccount, password },
  });
}


//获取管理员的昵称
export function getUserInfoService(){
  return service({
    url:"/sysUser/info",
    method:"GET"
  });
}


export function logoutService(){
  return service({
    url:"/sysUser/logout",
    method:"delete"
  })
}






